package com.zlx.mall.integration.sms.exception;

import com.zlx.mall.integration.sms.enums.JuHeResponseEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * taotao
 *
 * @description
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class JuHeException extends RuntimeException{
    /**
     * 异常码
     */
    private String code;
    /**
     * 异常信息
     */
    private String message;

    public JuHeException(JuHeResponseEnum juHeResponse) {
        super(juHeResponse.getMsg());
        this.code = juHeResponse.getCode();
        this.message = juHeResponse.getMsg();
    }
}

